package com.red.springmanual.service;

import com.red.springmanual.spring.MApplicationContext;

public class Test {
    public static void main(String[] args) {
        // 构造Spring容器
        MApplicationContext mApplicationContext = new MApplicationContext(AppConfig.class);
        UserInterface userService = (UserInterface) mApplicationContext.getBean("userService");
        userService.test();
//        Integer test = test(3);

//        Test2 test2 = new Test2();
    }

    static class Test2{


        private  <T> T test(T t){
            return t;
        }

    }

}
